package net.mysoft.budgetsoft.system.domain;

import java.util.ArrayList;
import java.util.List;

/**
 * 分页实体
 * @author kangrui
 *
 */
@SuppressWarnings("rawtypes")
public class PageData<T> {

	private List<T> rows;
	private int total;
	private int pageNumber;
	private int pageSize;

	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public int getPageNumber() {
		return pageNumber;
	}
	public void setPageNumber(int pageNumber) {
		this.pageNumber = pageNumber;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public List getRows() {
		return rows;
	}
	public void setRows(List<T> rows) {
		this.rows = rows;
	}
	public PageData() {
		rows = new ArrayList<T>();
		pageNumber = 1;
		pageSize = 10;
	}
	
	public PageData(int pageNo, int pageSize) {
		super();
		this.pageNumber = pageNo;
		this.pageSize = pageSize;
	}
	
	public void printString() {
		/*for(Map map:rows) {
			System.err.println(map.get("order_no"));
		}
		System.err.println("total="+total);
		System.err.println("pageNumber="+pageNumber);
		System.err.println("pageSize="+pageSize);*/
	}
	
}
